/**
 *
 * (c) Copyright Ascensio System SIA 2025
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.zzvcom.office.entities;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import jakarta.persistence.Entity;
import jakarta.persistence.Table;

/**
 * 对应sdk api中的goback类
 * @see com.onlyoffice.model.documenteditor.config.editorconfig.customization.Goback
 * Goback 是一个用于配置ONLYOFFICE文档编辑器中"返回"或"打开文件位置"按钮行为的模型类。
 * 用途: 定义文档编辑器中"Open file location"菜单按钮和右上角按钮的设置
 *
 *
 */
@Entity
@Table(name = "`goback`")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Goback extends AbstractEntity {
    /**
     * 功能: 配置"Open file location"按钮的显示文本
     */
    private String text;
    /**
     * 功能: 控制点击"Open file location"按钮时是在新标签页/窗口打开(true)还是当前标签页打开(false)
     * 默认值: true
     */
    private Boolean blank;
}
